﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using dbPoll_Application.Models;
using System.Web.Security;

namespace dbPoll_Application.Controllers
{
    public class EmailController : Controller
    {
        //
        // GET: /Email/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult GenericEmail(String username, String password, String heading, String msg)
        {
            GenericEmailModel model = new GenericEmailModel();
            model.Username = username;
            model.Password = password;
            model.Heading = heading;
            model.Content = msg;
            return View(model);
        }



    }
}
